.class public abstract Les/dw;
.super Ljava/lang/Object;
.source "EntityStore.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Les/dw$b;,
        Les/dw$e;,
        Les/dw$d;,
        Les/dw$c;
    }
.end annotation


# instance fields
.field protected final a:Les/bw;

.field private final b:Les/fw;

.field private c:Z

.field private d:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/dv;",
            ">;"
        }
    .end annotation
.end field

.field private e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Les/dv;",
            ">;"
        }
    .end annotation
.end field

.field private f:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Ljava/lang/Long;",
            ">;"
        }
    .end annotation
.end field

.field private g:Ljava/util/concurrent/atomic/AtomicInteger;


# direct methods
.method public constructor <init>()V
    .locals 2

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Les/dw;->c:Z

    .line 3
    new-instance v0, Ljava/util/concurrent/atomic/AtomicInteger;

    const/4 v1, 0x0

    invoke-direct {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;-><init>(I)V

    iput-object v0, p0, Les/dw;->g:Ljava/util/concurrent/atomic/AtomicInteger;

    .line 4
    invoke-static {}, Les/bw;->c()Les/bw;

    move-result-object v0

    iput-object v0, p0, Les/dw;->a:Les/bw;

    .line 5
    invoke-static {}, Les/fw;->a()Les/fw;

    move-result-object v0

    iput-object v0, p0, Les/dw;->b:Les/fw;

    .line 6
    new-instance v0, Ljava/util/ArrayList;

    const/16 v1, 0xc8

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Les/dw;->d:Ljava/util/List;

    .line 7
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Les/dw;->e:Ljava/util/List;

    .line 8
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v0, p0, Les/dw;->f:Ljava/util/List;

    return-void
.end method

.method static synthetic a(Les/dw;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/dw;->d:Ljava/util/List;

    return-object p0
.end method

.method static synthetic b(Les/dw;)Ljava/util/concurrent/atomic/AtomicInteger;
    .locals 0

    .line 1
    iget-object p0, p0, Les/dw;->g:Ljava/util/concurrent/atomic/AtomicInteger;

    return-object p0
.end method

.method static synthetic c(Les/dw;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/dw;->e:Ljava/util/List;

    return-object p0
.end method

.method static synthetic d(Les/dw;)Ljava/util/List;
    .locals 0

    .line 1
    iget-object p0, p0, Les/dw;->f:Ljava/util/List;

    return-object p0
.end method


# virtual methods
.method public a(Les/dv;)J
    .locals 2

    if-eqz p1, :cond_0

    .line 17
    new-instance v0, Les/dw$d;

    invoke-direct {v0, p0, p1}, Les/dw$d;-><init>(Les/dw;Les/dv;)V

    .line 18
    invoke-virtual {p0, v0}, Les/dw;->a(Ljava/lang/Runnable;)V

    :cond_0
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method protected abstract a()Ljava/lang/String;
.end method

.method public a(J)V
    .locals 1

    .line 19
    new-instance v0, Les/dw$b;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-direct {v0, p0, p1}, Les/dw$b;-><init>(Les/dw;Ljava/lang/Long;)V

    .line 20
    invoke-virtual {p0, v0}, Les/dw;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method protected a(Les/dw$c;)V
    .locals 3

    .line 2
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {v0}, Les/bw;->b()V

    .line 3
    iget-object v0, p0, Les/dw;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    .line 4
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {p0}, Les/dw;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Les/dw;->e:Ljava/util/List;

    invoke-virtual {v0, v1, v2}, Les/bw;->d(Ljava/lang/String;Ljava/util/List;)Z

    .line 5
    iget-object v0, p0, Les/dw;->e:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 6
    :cond_0
    iget-object v0, p0, Les/dw;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_1

    .line 7
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {p0}, Les/dw;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Les/dw;->f:Ljava/util/List;

    invoke-virtual {v0, v1, v2}, Les/bw;->a(Ljava/lang/String;Ljava/util/List;)Z

    .line 8
    iget-object v0, p0, Les/dw;->f:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 9
    :cond_1
    iget-object v0, p0, Les/dw;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_2

    .line 10
    iget-object v0, p0, Les/dw;->g:Ljava/util/concurrent/atomic/AtomicInteger;

    iget-object v1, p0, Les/dw;->d:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/util/concurrent/atomic/AtomicInteger;->addAndGet(I)I

    .line 11
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {p0}, Les/dw;->a()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Les/dw;->d:Ljava/util/List;

    invoke-virtual {v0, v1, v2}, Les/bw;->c(Ljava/lang/String;Ljava/util/List;)Z

    .line 12
    iget-object v0, p0, Les/dw;->d:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 13
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    :cond_2
    if-eqz p1, :cond_3

    .line 14
    invoke-interface {p1}, Les/dw$c;->b()V

    .line 15
    :cond_3
    iget-object p1, p0, Les/dw;->a:Les/bw;

    invoke-virtual {p1}, Les/bw;->close()V

    return-void
.end method

.method protected final a(Ljava/lang/Runnable;)V
    .locals 1

    .line 16
    iget-object v0, p0, Les/dw;->b:Les/fw;

    invoke-virtual {v0, p1}, Les/fw;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public a(Ljava/lang/String;Landroid/content/ContentValues;)V
    .locals 1

    .line 21
    new-instance v0, Les/dw$a;

    invoke-direct {v0, p0, p2, p1}, Les/dw$a;-><init>(Les/dw;Landroid/content/ContentValues;Ljava/lang/String;)V

    invoke-virtual {p0, v0}, Les/dw;->a(Ljava/lang/Runnable;)V

    return-void
.end method

.method public b(Les/dv;)V
    .locals 1

    if-eqz p1, :cond_0

    .line 2
    new-instance v0, Les/dw$e;

    invoke-direct {v0, p0, p1}, Les/dw$e;-><init>(Les/dw;Les/dv;)V

    .line 3
    invoke-virtual {p0, v0}, Les/dw;->a(Ljava/lang/Runnable;)V

    :cond_0
    return-void
.end method

.method public b()Z
    .locals 1

    .line 4
    iget-boolean v0, p0, Les/dw;->c:Z

    return v0
.end method

.method public final c()V
    .locals 2

    .line 2
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {v0}, Les/bw;->b()V

    .line 3
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {v0}, Les/bw;->a()Z

    move-result v0

    iput-boolean v0, p0, Les/dw;->c:Z

    .line 4
    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    .line 5
    invoke-virtual {p0}, Les/dw;->d()V

    .line 6
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    .line 7
    iget-object v1, p0, Les/dw;->a:Les/bw;

    invoke-virtual {v1}, Les/bw;->close()V

    .line 8
    throw v0

    .line 9
    :catch_0
    :goto_0
    iget-object v0, p0, Les/dw;->a:Les/bw;

    invoke-virtual {v0}, Les/bw;->close()V

    return-void
.end method

.method protected abstract d()V
.end method

.method public e()V
    .locals 2

    .line 1
    iget-object v0, p0, Les/dw;->a:Les/bw;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Les/bw;->a(Z)V

    return-void
.end method
